function [X,Y ] = isStableSys2( dx,dy )
%ISSTABLESYS Summary of this function goes here
%   Detailed explanation goes here
param.a=1.446;
param.b=1.408;
param.c=1.4370;
param.I=1549.034;
param.m=2220;
param.g=9.81;
X=[];
Y=[];

for i=1:size(dx,1)
    for j=1:size(dx,2)
        u=zeros(5,1);
        x=[dy(i,j);dx(i,j);zeros(4,1)];
        [A,B,C,D]=carLin(x,u,param);
        if(any(eig(A)>0))
            X=[X;dx(i,j)];
            Y=[Y;dy(i,j)];
        end
    end
end
end

